package cn.mw.cmdb.entity;

import cn.mw.cmdb.service.ServiceChoose;
import cn.mw.cmdb.service.impl.LayoutItemMapperServiceImpl;
import cn.mw.components.mongodb.anno.AutoId;
import cn.mw.components.mongodb.anno.CMDBProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Map;

/**
 * 监控布局
 */
@Data
@Document("mw_component_mapper_data")
public class LayoutItemMapperInfo implements ServiceChoose {
    @CMDBProperty
    @AutoId
    @Schema(description = "id,外键关联实例InstanceId")
    public String id;

    @CMDBProperty
    @Schema(description = "itemId和itemName映射数据")
    private Map mapperData;

    @Override
    @Schema(description = "模型服务Id")
    public String getServiceId() {
        return LayoutItemMapperServiceImpl.ID;
    }

}
